package com.chixing.day07_abstract;

public class Company {
    //属性
  /*  public int companyId;
    public String companyName;
    public String companyAddress;
    public  String companyType;
    public Long companyTelno;*/


    private int companyId;
    private String companyName;
    private String companyAddress;
    private  String companyType;
    private Long companyTelno;

    //构造函数

    public Company(int companyId, String companyName, String companyAddress, String companyType, Long companyTelno) {
        this.companyId = companyId;
        this.companyName = companyName;
        this.companyAddress = companyAddress;
        this.companyType = companyType;
        this.companyTelno = companyTelno;
    }


    //get、set方法

    public int getCompanyId() {
        return companyId;
    }

    public void setCompanyId(int companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyAddress() {
        return companyAddress;
    }

    public void setCompanyAddress(String companyAddress) {
        this.companyAddress = companyAddress;
    }

    public String getCompanyType() {
        return companyType;
    }

    public void setCompanyType(String companyType) {
        this.companyType = companyType;
    }

    public Long getCompanyTelno() {
        return companyTelno;
    }

    public void setCompanyTelno(Long companyTelno) {
        this.companyTelno = companyTelno;
    }


    //其他普通方法


    //toString

//重写Object.toString()
    @Override
    public String toString() {
        return "Company{" +
                "companyId=" + companyId +
                ", companyName='" + companyName + '\'' +
                ", companyAddress='" + companyAddress + '\'' +
                ", companyType='" + companyType + '\'' +
                ", companyTelno=" + companyTelno +
                '}';
    }
}
